class Receipt < ActiveRecord::Base
     validates :title, :length => {:within => 3..100}
     validates :keyword, :length => {:within => 3..50}
     validates :abbr, :length => {:within => 3..1000}
     validates :content, :length => {:within => 3..10000}
     validates_inclusion_of :status, :in => %w[banned approved] 
end
